<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="app" uri="http://www.wanrenhui.com"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@include file="/res/include/base-head.jsp"%>
<%@include file="/res/include/jquery-easyui.jsp"%>
<script type="text/javascript" src="${pageContext.request.contextPath}/res/js/user/userBase.js"></script>
</head>
<body>
	<div class="form_item">
		<c:if test="${empty userAuthVo}">
			还未申请身份认证
		</c:if>
		<c:if test="${not empty userAuthVo}">
		<form id="data-form">  
			<dl>
	        	<dt>真实姓名：</dt>
	            <dd>${userAuthVo.realName}</dd>
	        </dl>
	        <dl>
	        	<dt>身份证号：</dt>
	            <dd>${userAuthVo.identityNumber}</dd>
	        </dl>
	        <dl>
	        	<dt>审核状态：</dt>
	            <dd>
	            	<c:choose><c:when test="${userAuthVo.auditStatus==1}">待审核</c:when><c:when test="${userAuthVo.auditStatus==2}">审核通过</c:when><c:otherwise>审核不通过 </c:otherwise></c:choose>  
	            </dd>
	        </dl>
	        
	        <dl>
		        <dt>身份证正面照片：</dt>
		        <dd>
		        	<c:if test="${userAuthVo.identityCardImg != ''}">
			        	<img src="http://qquan-hn-crazy.oss-cn-shenzhen.aliyuncs.com${userAuthVo.identityCardImg}" alt="" height="300" width="300" />
			        </c:if>
		        </dd>
		    </dl>
		    <dl>
		        <dt>身份证反面照片：</dt>
		        <dd>
		        	<c:if test="${userAuthVo.identityCardBackImg != ''}">
			        	<img src="http://qquan-hn-crazy.oss-cn-shenzhen.aliyuncs.com${userAuthVo.identityCardBackImg}" alt="" height="300" width="300" />
			        </c:if>
		        </dd>
		    </dl>
		    <dl>
		        <dt>个人正面照：</dt>
		        <dd>
		        <c:if test="${userAuthVo.photosImg != ''}">
		        	<img src="http://qquan-hn-crazy.oss-cn-shenzhen.aliyuncs.com${userAuthVo.photosImg}" alt="" height="300" width="300" />
		        </c:if>
		        </dd>
		    </dl>
		    <dl>
	        	<dt>籍贯：</dt>
	            <dd>
	            	<input type="text" id="birthPlace" name="birthPlace" value="${userAuthVo.birthPlace }" class="txt grid-25 easyui-validatebox" data-options="required:true" maxlength="32"/>
	            </dd>
	            <dt>出生年日：</dt>
	            <dd>
	            	<input id="birthAt" name="birthAt" type="text" value="${userAuthVo.birthAt }" class="txt easyui-datebox"  data-options="required:true,validType:'date'" />
	            </dd>
	        </dl>
	        <input type="hidden" name="userId" value="${userAuthVo.userId}"/>
	        </form>
		    <c:if test="${userAuthVo.auditStatus==1}">
		    	<p class="page_btn">
			    	<input type="button" id="audit" value="通过" class="btn_blue" onclick="admin.userBase.through(${userAuthVo.userId});"/>
			    	<input type="button" id="audit" value="不通过" class="btn_blue" onclick="admin.userBase.notthrough(${userAuthVo.userId});"/>
			    </p>
		    </c:if>
		</c:if>
	</div>
</body>
</html>
